/**
 * Copyright 2011 Poltman.Ltd; www.poltman.com. All rights reserved.		
 *
 * This file is part of the dspace-poltman project http://www.poltman.com.
 *
 * This is free software; you can redistribute it and/or modify it under
 * the terms of DuraSpace DSpace license detailed in the LICENSE and NOTICE 
 * files at the root of the source tree and available online at
 * http://www.dspace.org/license/
 * 
 */
package com.poltman.dscentral.db.entity.dspace;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.SequenceGenerator;
import javax.persistence.Table;

/**
 * @author z.ciok@poltman.com
 * @version $Revision: 1593 $
 */
@Entity
@Table(name="registrationdata")
public class RegistrationdataEntity implements Serializable {

	private static final long serialVersionUID = 240922252682778652L;

	public RegistrationdataEntity(){}

	
    @Id
    @SequenceGenerator(name="registrationdata_seq", sequenceName="registrationdata_seq")
    @GeneratedValue(strategy=GenerationType.SEQUENCE, generator="registrationdata_seq") 
    @Column(name="registrationdata_id")
    private Integer registrationdataId;	
    
    @Column(name="email")
    private String email;
    
    @Column(name="token")
    private String token;
    
    @Column(name="expires")
    private Date expires;

    
	public Integer getRegistrationdataId() {
		return registrationdataId;
	}
	public void setRegistrationdataId(Integer registrationdataId) {
		this.registrationdataId = registrationdataId;
	}

	public String getEmail() {
		return email;
	}
	public void setEmail(String email) {
		this.email = email;
	}

	public String getToken() {
		return token;
	}
	public void setToken(String token) {
		this.token = token;
	}

	public Date getExpires() {
		return expires;
	}
	public void setExpires(Date expires) {
		this.expires = expires;
	}
}
